# Contributor: Sebastian Hudak <sebastian@sebsite.pw>
# Maintainer: Sebastian Hudak <sebastian@sebsite.pw>
pkgname=sponskrub
pkgver=3.7.2
pkgrel=1
pkgdesc="Command-line utility to strip out advertisements from downloaded YouTube videos"
url="https://github.com/faissaloo/SponSkrub"
arch="x86_64" # limited by dub
license="GPL-3.0-or-later"
makedepends="dub ldc"
source="$pkgname-$pkgver.tar.gz::https://github.com/faissaloo/SponSkrub/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/SponSkrub-$pkgver"
options="!check" # No tests

build() {
	dub build sponskrub:sponskrub
}

package() {
	install -Dm755 sponskrub "$pkgdir"/usr/bin/sponskrub
}

sha512sums="5584dafed292201baeb36a1b5585d56070b4e3db9e5e2f1600dae6bdc21db43c4e7aa65eb1b881099f7211278613856422de2d53671fdda4f3b0aa3c85c8c5b4  sponskrub-3.7.2.tar.gz"
